package com.gtw.modules.api.controller;

import com.gtw.common.annotation.AuthIgnoreApi;
import com.gtw.common.utils.R;
import com.gtw.modules.entity.TbBankCard;
import com.gtw.modules.sys.service.TbBankCardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/** 银行卡
 * Created by wuye on 2018/3/26.
 */
@RestController
@RequestMapping("/api/bankcard")
public class TbBankCardController {

    @Autowired
    private TbBankCardService tbBankCardService;

    /*
     * 查询所有银行卡列表
     * @return
     */
    @AuthIgnoreApi
    @RequestMapping("/queryList")
    public R queryList(){
        List<TbBankCard> list = tbBankCardService.queryAll();

        return R.ok().put("data",list);
    }
}
